﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MessyBrain.Models.Task>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table>
    <thead>
        <tr>
            <td>Title</td>
            <td>Description</td>
        </tr>
    </thead>
    <tbody>
        <% foreach (MessyBrain.Models.Task task in ViewData.Model) { %>
            <tr>
                <td><%= task.Name %></td>
                <td><%= task.Description %></td>
            </tr>
        <% } %>
    </tbody>
</table>
</asp:Content>